<?php /* Smarty version Smarty-3.0.5, created on 2015-11-21 13:55:34
         compiled from "D:\WWW\phpcms5\tpl/xiaomi/index.html" */ ?>
<?php /*%%SmartyHeaderCode:21983565007568af596-16581548%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2dedb53d605f6cbc948b205154f9af6802fdca38' => 
    array (
      0 => 'D:\\WWW\\phpcms5\\tpl/xiaomi/index.html',
      1 => 1448085332,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21983565007568af596-16581548',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'D:\WWW\phpcms5\source\core\plugins\modifier.date_format.php';
?>	<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."site_header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<link rel="stylesheet" href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/index.min.css">

	<div id="J_navMenu" class="header-nav-menu" style="display: none;"><div class="container"></div></div></div>
	<div class="home-hero-container container">
	    <div class="home-hero">
	        <div class="home-hero-slider">
	            <div id="J_homeSlider" class="xm-slider" data-stat-title="焦点图轮播">
	            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('ads_zone1')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['adsname']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['adsname']['iteration']++;
?>
				<div class="slide loaded"><a href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
" target="_blank"  onClick="_gaq.push(['_trackEvent', '<?php echo $_smarty_tpl->tpl_vars['item']->value['adsname'];?>
', 'A<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['adsname']['iteration'];?>
', '<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
']);"><img width="1226" height="440" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['uploadfiles'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['adsname'];?>
" /></a></div>
				<?php }} ?>  
	           </div>
	        </div>
	        <div class="home-hero-sub row">
	            <div class="span4">
	                <ul class="home-channel-list clearfix">
	                    <li class="top left">
	                   		<a href="http://hd.mi.com/f/buy/open/cn/index.html" data-stat-aid="AA10867" data-stat-pid="2_44_1_250" target="_blank" data-stat-id="AA10867+2_44_1_250" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10867+2_44_1_250', 'http://hd.mi.com/f/buy/open/cn/index.html', 'pcpid']);"><i class="iconfont"></i>开放购买</a>
	                    </li>
	                    <li class="top">
	                    	<a href="http://qiye.mi.com/" data-stat-aid="AA10868" data-stat-pid="2_44_2_251" target="_blank" data-stat-id="AA10868+2_44_2_251" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10868+2_44_2_251', 'http://qiye.mi.com/', 'pcpid']);"><i class="iconfont"></i>企业团购</a>
	                    </li>
	                    <li class="top">
	                    	<a href="http://qiye.mi.com/" data-stat-aid="AA10868" data-stat-pid="2_44_2_251" target="_blank" data-stat-id="AA10868+2_44_2_251" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10868+2_44_2_251', 'http://qiye.mi.com/', 'pcpid']);"><i class="iconfont"></i>企业团购</a>
	                    </li>
	                    <li class="top">
	                    	<a href="http://qiye.mi.com/" data-stat-aid="AA10868" data-stat-pid="2_44_2_251" target="_blank" data-stat-id="AA10868+2_44_2_251" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10868+2_44_2_251', 'http://qiye.mi.com/', 'pcpid']);"><i class="iconfont"></i>企业团购</a>
	                    </li>
	                    <li class="top">
	                    	<a href="http://qiye.mi.com/" data-stat-aid="AA10868" data-stat-pid="2_44_2_251" target="_blank" data-stat-id="AA10868+2_44_2_251" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10868+2_44_2_251', 'http://qiye.mi.com/', 'pcpid']);"><i class="iconfont"></i>企业团购</a>
	                    </li>
	                    <li class="top">
	                    	<a href="http://qiye.mi.com/" data-stat-aid="AA10868" data-stat-pid="2_44_2_251" target="_blank" data-stat-id="AA10868+2_44_2_251" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10868+2_44_2_251', 'http://qiye.mi.com/', 'pcpid']);"><i class="iconfont"></i>企业团购</a>
	                    </li>
	                </ul>
	            </div>
	            <div class="span16" id="J_homePromo" data-stat-title="焦点图下方小图">
	                <ul class="home-promo-list clearfix">
	                    <li class="first">
	                        <a class="item" href="http://www.mi.com/mimobile/" data-stat-aid="AA11443" data-stat-pid="2_16_1_77" target="_blank" data-stat-id="AA11443+2_16_1_77" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11443+2_16_1_77', 'http://www.mi.com/mimobile/', 'pcpid']);"><img alt="良精移动 电话卡" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
images/T1UBh_BsET1RXrhCrK.jpg" srcset="http://i3.mifile.cn/a4/T1ZNdgBjxT1RXrhCrK.jpg 2x"></a>
	                    </li>
	                	<li>
	                        <a class="item" href="http://www.mi.com/mimobile/" data-stat-aid="AA11443" data-stat-pid="2_16_1_77" target="_blank" data-stat-id="AA11443+2_16_1_77" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11443+2_16_1_77', 'http://www.mi.com/mimobile/', 'pcpid']);"><img alt="良精移动 电话卡" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
images/xfxt2.jpg" srcset="http://i3.mifile.cn/a4/T1ZNdgBjxT1RXrhCrK.jpg 2x"></a>
	                    </li>
	                    <li>
	                        <a class="item" href="http://www.mi.com/mimobile/" data-stat-aid="AA11443" data-stat-pid="2_16_1_77" target="_blank" data-stat-id="AA11443+2_16_1_77" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11443+2_16_1_77', 'http://www.mi.com/mimobile/', 'pcpid']);"><img alt="良精移动 电话卡" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
images/xfxt3.jpg" srcset="http://i3.mifile.cn/a4/T1ZNdgBjxT1RXrhCrK.jpg 2x"></a>
	                    </li>    
	                </ul>
	            </div>
	        </div>
	    </div>

	    <div class="home-star-goods xm-carousel-container" id="J_homeStar">
	        <div class="xm-plain-box">
	            <div class="box-hd">
	                <h2 class="title">最新产品</h2>
	                <div class="more"></div>
	            </div> 
	            <div class="box-bd">
	                <ul style="width: 2480px; margin-left: 0px; transition: margin-left 0.5s ease 0s;" class="xm-carousel-list xm-carousel-col-5-list goods-list rainbow-list clearfix J_carouselList">
	                 <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = Mod_Product::volist('',"ORDER BY v.productid DESC",10); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']++;
?>

	                    <li class="rainbow-item-<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['product_elitedata']['iteration'];?>
">
	                        <a onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11385+2_17_5_84', 'http://www.mi.com/miwifimini/', 'pcpid']);" data-stat-id="AA11385+2_17_5_84" class="thumb" href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA11385" data-stat-pid="2_17_5_84" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" srcset="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['volist']->value['sort_productname'];?>
"></a>
	                            <h3 class="title"><a onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11385+2_17_5_84', 'http://www.mi.com/miwifimini/', 'pcpid']);" data-stat-id="AA11385+2_17_5_84" href="http://www.mi.com/miwifimini/" data-stat-aid="AA11385" data-stat-pid="2_17_5_84" target="_blank"><?php echo $_smarty_tpl->tpl_vars['volist']->value['sort_productname'];?>
</a></h3>
	                            <p class="desc">上市时间：<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['volist']->value['timeline'],'%Y-%m-%d');?>
</p>
	                            <p class="price">&yen;<?php echo $_smarty_tpl->tpl_vars['volist']->value['price'];?>
</p>
	                    </li>
	                <?php }} ?>
	                    </ul>
	            </div>
	        </div>
	    </div>
	</div>

<div class="page-main home-main">
	    <div class="container">
	        <div id="smart" class="home-brick-box home-brick-row-2-box xm-plain-box J_itemBox J_brickBox is-visible loaded">
	            <div class="box-hd">
	                <h2 class="title">热门商品</h2>
	                <div class="more J_brickNav"><a class="more-link" href="<?php echo $_smarty_tpl->getVariable('url_product')->value;?>
" target="_blank" data-stat-id="de49881b66b229de" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-de49881b66b229de', 'http://www.mi.com/smart/', 'pcpid']);">查看全部<i class="iconfont"></i></a></div>
	            </div>
	            <div class="box-bd J_brickBd">
	            	<div class="row">
	                	<div class="span4 span-first">
	                		<ul class="brick-promo-list clearfix">
	                		<?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = Mod_Product::volist('',"ORDER BY v.isnew DESC",1); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']++;
?>
	                			<li class="brick-item brick-item-l">
	                				<a href="http://www.mi.com/miwifilite/" data-stat-aid="AA11367" data-stat-pid="2_18_1_90" target="_blank" data-stat-id="AA11367+2_18_1_90" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11367+2_18_1_90', 'http://www.mi.com/miwifilite/', 'pcpid']);">
	                					<img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" width="160" height="160" alt="">
	                				</a>
	                   			</li>
		                    <?php }} ?>
	                		</ul>
	                	</div>

	                 	<div class="span16">
		                   	<ul class="brick-list clearfix">
		                   	<?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = Mod_Product::volist('',"ORDER BY v.isnew DESC",8); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']++;
?>
			                    <li class="brick-item brick-item-m brick-item-m-2" data-gid="2152800032">
				                    <div class="figure figure-img">
				                        <a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA11373" data-stat-pid="2_19_1_92" target="_blank" data-stat-id="AA11373+2_19_1_92" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11373+2_19_1_92', 'http://item.mi.com/1152800035.html', 'pcpid']);"><img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" width="160" height="160" alt="<?php echo $_smarty_tpl->tpl_vars['volist']->value['productname'];?>
"></a> 
				                    </div> 
					                    <h3 class="title">
					                       <a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA11373" data-stat-pid="2_19_1_92" target="_blank" data-stat-id="AA11373+2_19_1_92" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11373+2_19_1_92', 'http://item.mi.com/1152800035.html', 'pcpid']);"><?php echo $_smarty_tpl->tpl_vars['volist']->value['sort_productname'];?>
</a>
				                       </h3> 
				                       <p class="desc">上市时间:<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['volist']->value['timeline'],'%Y-%m-%d');?>
</p>
				                       <p class="price"> &yen;<?php echo $_smarty_tpl->tpl_vars['volist']->value['price'];?>
</p>  
			                    </li>
		                    <?php }} ?>  
		                    </ul>
	                    </div>
	            	</div>
	    		</div>
			</div>
		</div>
	</div>


<div class="page-main home-main">
    <div class="container">
		<div id="match" class="home-brick-box home-brick-row-2-box xm-plain-box J_itemBox J_brickBox is-visible loaded">
            <div class="box-hd">
                <h2 class="title">热门浏览</h2>
            </div>
            <div class="box-bd J_brickBd">
            	<div class="row">
            		<div class="span4 span-first">
            			<ul class="brick-promo-list clearfix">
            				<li class="brick-item brick-item-m">
            					<a href="http://list.mi.com/accessories/erji" data-stat-aid="AA11473" data-stat-pid="2_20_1_100" target="_blank" data-stat-id="AA11473+2_20_1_100" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11473+2_20_1_100', 'http://list.mi.com/accessories/erji', 'pcpid']);">
            						<img src="http://i3.mifile.cn/a4/T1lmCgBTET1RXrhCrK.jpg" width="160" height="160" alt="">
            					</a>
            				</li>
            				<li class="brick-item brick-item-m brick-item-active">
            					<a href="http://list.mi.com/30" data-stat-aid="AA11068" data-stat-pid="2_20_2_101" target="_blank" data-stat-id="AA11068+2_20_2_101" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11068+2_20_2_101', 'http://list.mi.com/30', 'pcpid']);"><img src="http://i3.mifile.cn/a4/T1GyL_BbAT1RXrhCrK.jpg" width="160" height="160" alt="">
            					</a>
            				</li>
            			</ul>
            		</div>
            		<div class="span16">
            			<div id="match-content" class="tab-container">
            				<ul class="brick-list tab-content clearfix tab-content-active J_recommendActive">
            				<?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = Mod_Product::volist('',"ORDER BY v.hits DESC",8); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']++;
?>	
            					<li class="brick-item brick-item-m" data-gid="2154200017">
            						<div class="figure figure-img">
            							<a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA11429" data-stat-pid="2_21_1_102" target="_blank" data-stat-id="AA11429+2_21_1_102" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11429+2_21_1_102', '<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
', 'pcpid']);">
            								<img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" width="150" height="150" alt="<?php echo $_smarty_tpl->tpl_vars['volist']->value['productname'];?>
">
            							</a>
            						</div>
            						<h3 class="title">
            							<a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA11429" data-stat-pid="2_21_1_102" target="_blank" data-stat-id="AA11429+2_21_1_102" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA11429+2_21_1_102', '<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
', 'pcpid']);"><?php echo $_smarty_tpl->tpl_vars['volist']->value['productname'];?>
</a>
            						</h3>
            							<p class="price">
            								<span class="num">&yen;<?php echo $_smarty_tpl->tpl_vars['volist']->value['price'];?>
</span>
            							</p>
		                            	<p class="desc">
		                            		上市时间:<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['volist']->value['timeline'],'%Y-%m-%d');?>

		                            	</p>
	            					</li>
	            			<?php }} ?>

	            				</ul>
	            			</div>
	            		</div>
	            	</div>
	            </div>
	        </div>
	    </div>
	</div>
		


	

	<div class="page-main home-main">
	    <div class="container">
			<div id="comment" class="home-review-box xm-plain-box J_itemBox J_reviewBox is-visible">
			    <div class="box-hd">
			        <h2 class="title">推荐产品</h2>
			    </div>
			    <div class="box-bd J_brickBd">
			    	<ul class="review-list clearfix">
			    	<?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = Mod_Product::volist('',"ORDER BY v.elite DESC",4); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['product_elitedata']['iteration']++;
?>
			    		<li class="review-item review-item" data-gid="2152000002">
			    			<div class="figure figure-img">
			    				<a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" data-stat-aid="AA10799" data-stat-pid="2_38_1_224" target="_blank" data-stat-id="AA10799+2_38_1_224" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10799+2_38_1_224', '<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
', 'pcpid']);"> <img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['uploadfiles'];?>
" width="296" height="220" alt="<?php echo $_smarty_tpl->tpl_vars['volist']->value['sort_productname'];?>
"></a>
				    		</div>
				    		<p class="review">
				    			<a href="<?php echo $_smarty_tpl->getVariable('product')->value['caturl'];?>
" data-stat-aid="AA10799" data-stat-pid="2_38_1_224" target="_blank" data-stat-id="AA10799+2_38_1_224" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10799+2_38_1_224', 'http://order.mi.com/comment/commentDetail/comment_id/11130613', 'pcpid']);"><?php echo $_smarty_tpl->tpl_vars['volist']->value['catename'];?>
</a>
				    		</p>
				    		<div class="info">
				    			<h3 class="title">
				    				<a href="http://item.mi.com/1152000005.html" data-stat-aid="AA10799" data-stat-pid="2_38_1_224" target="_blank" data-stat-id="AA10799+2_38_1_224" onclick="_msq.push(['trackEvent', '79fe2eae924d2a2e-AA10799+2_38_1_224', 'http://item.mi.com/1152000005.html', 'pcpid']);"><?php echo $_smarty_tpl->tpl_vars['volist']->value['sort_productname'];?>
</a>
				    			</h3> 
					    			<span class="sep">|</span>
					    		<p class="price">
					    			<span class="num"><?php echo $_smarty_tpl->tpl_vars['volist']->value['price'];?>
</span>元
				    			</p>
				    		</div>  
				    	</li>
					<?php }} ?>
				    </ul>
				</div>
			</div>
		</div>
	</div>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."site_footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
